with open('mymod.py', 'w') as f:
    f.write('print(\'hello, world.\')')

